#!/bin/sh

# CSS Tidy script for BBEdit and TextWrangler
# (place in ~/Library/Application Support/BBEdit/Text Filters/)
# (also place included binary file into ~/Library/Application Support/BBEdit/Unix Support/)

# cat /dev/stdin >orig
# csstidy orig --...
# rm orig
../Unix\ Support/csstidy - --allow_html_in_templates=false --case_properties=false --compress_colors=true --compress_font-weight=false --discard_invalid_properties=false --lowercase_s=false --merge_selectors=2 --preserve_css=true --remove_bslash=false --silent=true --sort_properties=true --sort_selectors=false --template='../Unix Support/csstidytemplate.tpl' --timestamp=false

# Options for CSSTidy Command Line
# (see also csstidy.sourceforge.net)
# csstidy input_filename [ --preserve_css=[false|true] | --remove_bslash=[true|false] | --compress_colors=[true|false] --lowercase_s=[false|true] | --timestamp=[false|true] | --optimise_shorthands=[1|2|0] | --remove_last_;=[false|true] | --sort_properties=[false|true] | --sort_selectors=[false|true] | --merge_selectors=[2|1|0] | --compress_font-weight=[true|false] | --allow_html_in_templates=[true|false] | --silent==[false|true] | --case_properties=[0|1|2] | --template=[default | filename | low | high | highest] | output_filename ]*

# --optimize_shorthands=1